home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Networking / PCCardNetworkSample / ProjectDefines.h < prev   
Encoding:
Text File  |  2000-09-28  |  2.2 KB  |  64 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        ProjectDefines.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by: Rich Kubota    
  7.  
  8.     Copyright:    Copyright © 1998-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 8/16/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23.  
  24. //----------------------------------------------------------------------
  25.  
  26. #define    DEBUG            1
  27. #define    DEBUG1            0
  28.  
  29. //----------------------------------------------------------------------
  30.  
  31. // use the TupleDumper PPC utility which comes with the PC Card DDK to display the data
  32. // associated with the following Tuples.  The following are used with the _IdentifyCard call
  33. // to verify that the proper card is being supported.
  34.  
  35. // the following are found in the CISTPL_MANFID
  36. // for the RATOC 5588 Ethernet card.
  37.  
  38. #define kManifID            0x0400
  39. #define kManifInfo            0x0400
  40.  
  41.     // the following is the name of the driver and port scanner
  42.     // they are used in the c an resource sources.
  43. #define kDriverName                    "MyEnetDriver"
  44. #define kDriverNameForCFRG            "OTModl$" kDriverName
  45. #define kPortScannerName            "MyCustomPortScanner"
  46. #define kPascalPortScannerName        "\p" kPortScannerName
  47.  
  48. #define kDescriptorProperty "driver-descriptor"
  49. #define kPortConfigured        "port-configured"
  50. #define kPortModule            "port-module"
  51. #define kSocketNumber        "SocketNumber"
  52.  
  53. // The following defines are unique to the RATOC 5588 Ethernet card on which I designed
  54. // this sample.  Change these values to match your card
  55.  
  56. // name string for the DriverDescriptor in the Enabler
  57. #define kPluginNamePString    "\ppccard4,4"
  58.  
  59. // manufacturer ID tyo match from the CISTPL_MANFID
  60. #define    kManufacture        "PCMCIA LAN MBH10304  ES"
  61.  
  62. // product ID to match from the CISTPL_MANFID
  63. #define    kProduct            "  01"
  64.